<template>
  <section class="righttask-box">
    <div class="corner-lb"></div>
    <div class="corner-rb"></div>
    <h3 class="task-title">
      设备总览
      <img class="icon" src="../../../../../assets/leftbg10.png" alt="" />
    </h3>
    <div class="task-num" :gutter="20">
      <div v-for="(item, index) in equipmentList" :key="index" class="task-list">
        <div>
          <img class="task-icon" :src="item.url" alt="" />
        </div>
        <div class="task-con">
          <p class="task-con-tit">{{ item.number }}</p>
          <p>{{ item.title }}</p>
        </div>
      </div>
    </div>
  </section>
</template>
<script lang="ts" setup>
import { ElRow, ElCol } from "element-plus";
import { ref, onMounted, onBeforeUnmount, defineProps } from "vue";
const props = defineProps({ equipmentList: Array });
</script>

<style lang="scss" scoped>
.righttask-box {
  background: rgb(2 19 20 / 80%);
  border: 1px solid;
  border-image: radial-gradient(circle,
      rgb(36 229 241 / 17%),
      rgb(255 255 255 / 17%)) 1 1;
  height: 15vh;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  &::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .corner-lb {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 22px;
    height: 22px;
    border-bottom: 1px solid #24e5f1;
    border-left: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .corner-rb {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-bottom: 1px solid #24e5f1;
    border-right: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .task-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4vh;
    padding-left: 1.5vh;
    margin: 0;
    font-family: PingFangSC, "PingFang SC";
    font-size: 2vh;
    font-weight: 500;
    color: #fffefe;
    user-select: none;
    background: radial-gradient(ellipse 140% 300% at 100% 50%,
        rgba(1, 34, 35, 0.2) 28%,
        rgba(7, 217, 221, 0.7) 100%);

    .icon {
      width: 3vh;
      margin-right: 1vw;
    }
  }
}

.task-num {
  width: 100%;
  height: calc(100% - 4vh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1vw;

  .task-icon {
    width: 3vw;
    height: 3vw;
  }

  .task-list {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .task-con {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-left: 0.5vw;
    font-size: 1vh;
    font-weight: 400;
    color: #fff;
    font-size: 0.8vw;

    .task-con-tit {
      font-size: 2vh;
      font-weight: bold;
      color: #24e5f1;
      text-align: left;
      margin-bottom: 0.2vh;
    }
  }
}
</style>
